package com.vigor.bear.webapp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.vigor.bear.webapp.bean.Role;
import com.vigor.bear.webapp.dao.RoleMapper;
import com.vigor.bear.webapp.service.RoleService;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {

	@Resource
	private RoleMapper rolemapper;

	@Override
	public int add(Role role) {
		return rolemapper.add(role);
	}

	@Override
	public int update(Role role) {
		return rolemapper.update(role);
	}

	@Override
	public int delete(int rid) {
		return rolemapper.delete(rid);
	}

	@Override
	public Role get(int rid) {
		return rolemapper.get(rid);
	}

	@Override
	public List<Role> all() {
		return rolemapper.all();
	}

}
